import request from '@/utils/request'

export default {
    findHospitalList(page, limit, searchObj) {
        return request({
            url: `/api/hosp/hospital/findHospitalList/${page}/${limit}`,
            method: 'get',
            params: searchObj
        })
    },

    findByHositalNameLike(hosname) {
        return request({
            url: `/api/hosp/hospital/findByHositalNameLike/${hosname}`,
            method: 'get'
        })
    },

    // 根据医院编号获取科室信息
    findDepartmentList(hoscode) {
        return request({
            url: `/admin/hosp/department/findDepartmentList/${hoscode}`,
            method: 'get'
        })
    },

    getBookingScheduleRule(page, limit, hoscode, depcode) {
        return request({
            url: `/api/hosp/hospital/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
            method: 'get'
        })
    },

    findScheduleList(hoscode, depcode, workDate) {
        return request({
            url: `/api/hosp/hospital/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
            method: 'get'
        })
    },

    // 根据排班ID获取排班信息
    getSchedule(id) {
        return request({
            url: `/api/hosp/hospital/getSchedule/${id}`,
            method: 'get'
        })
    },


    // 根据医院编号获取医院预约挂号详情信息
    findItemDetail(hoscode) {
        return request({
            url: `/api/hosp/hospital/findItemDetail/${hoscode}`,
            method: 'get'
        })
    }

}